package top.infopub.mgr.fia.service;

import com.github.pagehelper.Page;
import top.infopub.dto.fia.FundsPlanDetailDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.mgr.fia.domain.FundsPlanSummaryDomain;
import top.infopub.mgr.fia.jsonvo.FundsPlanJsonVo;
import top.infopub.mgr.fia.vo.FundsPlanSummaryVo;
import top.infopub.model.fia.FundsPlan;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface FundsPlanService extends GenericService<FundsPlan, String> {
    /**
     * 根据条件查询分页记录
     * @param page
     * @param fundsPlanSummaryVo
     * @return
     * @see
     */
    Page<FundsPlanSummaryDomain> selectPageByDomainWhere(Page<FundsPlanSummaryDomain> page,
                                                         FundsPlanSummaryVo fundsPlanSummaryVo);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    FundsPlanJsonVo queryDetailById(String id);

    /**
     * 根据项目编码和归属年月查询详情
     * @param proCode
     * @param belongDate
     * @return
     */
    FundsPlanJsonVo queryDetail(String proCode, String belongDate);

    /**
     * 根据父级ID和归属年月查询子分类
     * @param typeId
     * @param belongDate
     * @return
     */
    List<FundsPlanDetailDto> queryTypeByParentId(String typeId, String belongDate);

    /**
     * 编辑资金上交
     * @param fundsPlanJson
     * @param submitType
     * @param vo
     * @return
     */
    RspVo edit(FundsPlanJsonVo fundsPlanJson, Integer submitType, AuthorizationVO vo);
}